package com.macro.service;

import com.macro.pojos.dto.*;
import com.macro.pojos.pojo.UiGoodsAttributeCategory;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

public interface GoodsService {

    ResponseResult queryGoods(UiGoodsDto uiGoodsDto);

    ResponseResult batchGoods(BatchChangeDto batchChangeDto);

    ResponseResult labelChange(LabelChangeDto labelChangeDto);

    ResponseResult addGoods(UiGoodsAddDto uiGoodsAddDto);

    ResponseResult delGoodsById(Integer id);

    ResponseResult updateGoods(UiGoodsAddDto uiGoodsAddDto);

    ResponseResult upload(MultipartFile file) throws IOException;

    ResponseResult findGoodsType(UiGoodsAttributeCategory uiGoodsAttributeCategory);

    ResponseResult findAttributeAndParm(Integer id);

    ResponseResult findAllSubject(String subTitle);

    ResponseResult findAllPreference(String preferNname);

}
